/**
 * @description 入口js
 */

//webpack打包动态增加静态域名地址
if(process.env.NODE_ENV == 'production' && window.config){
  __webpack_public_path__ = window.config.staticDomain + '/';
}

//添加浏览器es6部分特性支持 promise等
import 'babel-polyfill'
import 'iview/dist/styles/iview.css';
import './assets/css/animate.css'
import './assets/css/font.css'
import 'element-ui/lib/theme-default/index.css'

import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview';
import locale from 'iview/src/locale/lang/en-US';

import store from './store/store'
import TouchRipple from 'vue-touch-ripple';
import localeElement from 'element-ui/lib/locale/lang/en'
import Element from 'element-ui'
Vue.use(Element, { localeElement })

//全局组件
import dAvatar from 'src/components/common/avatar-componet.vue'
Vue.component('d-avatar', dAvatar);
import  './mock'
window.$ = window.jQuery = require('jquery');
Vue.use(iView, { locale });
Vue.use(TouchRipple);
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

